<div id="page-wrapper">
    <!-- /.row -->
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <span class="judul-page">Master Lembaga</span>
                    <span class="pull-right">
                        <!-- <a href="#" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-print"></span>&nbsp;Cetak</a> -->
                        <a href="<?php echo base_url()?>mr_lembaga/add" class="btn btn-warning btn-xs"><span class="glyphicon glyphicon-plus"></span>&nbsp;Tambah Data</a>
                    </span>
                    <div class="clearfix"></div>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                      <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th width="50">#</th>
                                <th>Lembaga</th>
                            </tr>
                        </thead>
                        <tbody>
						<?php 
							if(count($list)>0){
								$i = 1; 
								foreach ($list as $row) {
						?>										
                            <tr>
                                <td><?php echo $i++ ?></td>
                                <td>
									<?php echo $row->nama_lembaga; ?>
									<span class="pull-right">
										<a href="<?php echo site_url('mr_lembaga/edit/'.$row->id_lembaga);?>" class="btn btn-success btn-xs" title="Edit"><span class="glyphicon glyphicon-edit"></span></a>
										<a href="<?php echo site_url('mr_lembaga/delete/'.$row->id_lembaga);?>" class="btn btn-danger btn-xs" title="Hapus" onclick="return confirm('Yakin Anda akan menghapus data lembaga ini secara permanen?')"><span class="glyphicon glyphicon-trash"></span></a>
									</span>
								</td>
                            </tr>
						<?php
								}
							}else{
						?>
							<tr>
                                <td colspan="2"><center>Belum ada data lembaga</center></td>
							</tr>
						<?php
							}
						?>
                        </tbody>
                      </table>
                    </div>
                    <div class="clearfix"></div>
                    <center>
                    <?php
                    echo ! empty($pagination) ? '<center><div class="pagination">' . $pagination . '</div></center>' : '';
                    ?>
                    </center>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->